package process_demo.attributes.daemon;

/**
 * @author haomin
 * @date 2022/04/19 20:20
 **/
public class Main2 {
    private static class MyThread extends Thread {
        @Override
        public void run() {
            while (true) {
                System.out.println("你好");
            }
        }
    }

    public static void main(String[] args) {
        MyThread t = new MyThread();
        t.setDaemon(true);
        t.start();
    }
}